package com.yesjpt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author 风火连城
 */
@SpringBootApplication
public class HelloApp extends SpringBootServletInitializer {
	@Override  //这个表示使用外部的tomcat容器
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		// 注意这里要指向原先用main方法执行的启动类
		return builder.sources(HelloApp.class);
	}

    public static void main(String[] args) {
        SpringApplication.run(HelloApp.class, args);
    }
}
